export default {
    install(params) {
        this.$axios
        .post("/export", params, { responseType: "blob" })
        .then(res => {
          const blob = new Blob([res.data]);

          const fileName = "统计.xlsx";
          const elink = document.createElement("a");
          elink.download = fileName;
          elink.style.display = "none";
          elink.href = URL.createObjectURL(blob);
          document.body.appendChild(elink);
          elink.click();
          URL.revokeObjectURL(elink.href); // 释放URL 对象
          document.body.removeChild(elink);
        });
    }

}
